require 'rake'
require(File.join(File.dirname(__FILE__), 'lib', 'jdbc_migration'))

Gem::Specification.new do |spec|
  spec.name = "jdbc_migration"
  spec.version = JdbcMigration::VERSION
  spec.platform = "java"
  spec.summary = "jdbc_migration helps your migration from RDB via JDBC"
  spec.author = "Takeshi Akima"
  spec.email = "rubeus@googlegroups.com"
  spec.homepage = "http://code.google.com/p/rubeus/"
  spec.rubyforge_project = "rubybizcommons"
  spec.has_rdoc = false

  spec.add_dependency("activesupport", ">= 2.1.0")
  spec.add_dependency("activerecord", ">= 2.1.0")
  spec.add_dependency("activerecord", ">= 2.1.0")

  spec.files = FileList['bin/*', '{lib,test}/**/*.{rb,jar}'].to_a
  spec.require_path = "lib"
  spec.requirements = ["none"]
  spec.autorequire = 'jdbc_migration' # autorequire is deprecated
  
  # bin_files = FileList['bin/*'].to_a.map{|file| file.gsub(/^bin\//, '')}
  # spec.executables = bin_files

  # spec.default_executable = 'jdbc_migration'
end
